<head>
    <link href="${ctx}/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="${ctx}/font-awesome/3.0.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="${ctx}/css/index.css" rel="stylesheet">
    <link href="${ctx}/bootstrap-table/1.12.0/bootstrap-table.min.css" rel="stylesheet">
    <script src="${ctx}/jquery/2.1.4/jquery.min.js"></script>
    <script src="${ctx}/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="${ctx}/bootstrap-table/1.12.0/bootstrap-table.min.js"></script>
    <script src="${ctx}/bootstrap-table/1.12.0/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="${ctx}/bootstrap-table/1.12.0/extensions/export/bootstrap-table-export.min.js"></script>
    <script src="${ctx}/js/extends.js"></script>
    <script src="${ctx}/layui/layui.all.js"></script>
    <script src="${ctx}/js/util.js"></script>
    <link href="${ctx}/layui/css/layui.css" rel="stylesheet">
    <style>
        .btn {
            font-size: 12px;
        }

        .layui-form-checkbox[lay-skin=primary] i {
            top: 5px;
        }
    </style>
</head>
<body>
<title>xianyu -- 统计</title>
<div style="padding: 10px 20px">
<form class="layui-form" >


    <input type="hidden" id="taskId" value="${taskId}">
    <div class="layui-inline">
        <label class="layui-form-label" style="width: 120px">起始时间</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="star" placeholder="请选择时间">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label" style="width: 120px">结束时间</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="end" placeholder="请选择时间">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-block">
            <input type="checkbox" name="skill" value="CheckSuccess" title="审核成功"checked>
            <input type="checkbox" name="skill" value="CheckFailure" title="审核失败">
            <input type="checkbox" name="skill" value="WaitCheckout" title="待审核">

        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>



</div>


</body>
<style>

</style>

<!--请在下方写此页面业务相关的脚本-->


<script type="text/javascript">
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        laydate.render({
            elem: '#star'
            , type: 'datetime'
            , format: 'yyyy-MM-dd HH:mm:ss'

        });
        laydate.render({
            elem: '#end'
            , type: 'datetime'
            , format: 'yyyy-MM-dd HH:mm:ss'
        });
        var form = layui.form;

        form.render();
    });




    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            var skillArray = "";
            $("input[name='skill']:checked").each(function () {
                var value = $(this).val();
                skillArray = skillArray + value + ",";
            })
            var taskId = $("#taskId").val();
            var star = $("#star").val();
            var end = $("#end").val();
            window.location.href="/export/excel/download?taskId="+taskId+"&star="+star+"&end="+end+"&str="+skillArray;


            return false;
        });
    });
</script>
<!--/请在上方写此页面业务相关的脚本-->
